<form id="dialog-login-form" action="{% url 'account_api_check_login' %}" method="post">
    <div class="input-group input-group-lg">
        <div class="input-group-addon">账号</div>
        <input type="text" class="form-control" id="loginform-user" name="user">
    </div><br />
    <div class="input-group input-group-lg">
        <div class="input-group-addon">密码</div>
        <input type="password" class="form-control" id="loginform-pwd" name="password">
    </div><br />
    {% if action != '' %}
    <input type="hidden" name="action" value="{{ action }}">
    {% else %}
    <div class="input-group">
        <div class="input-group-addon" style="text-align: left;"><label><input  type="checkbox" name="rememberme" value="1">&nbsp;记住我（14天内有效）</label></div>
    </div><br />
    {% endif %}
    <div id="form-psbar" style="display: none;">
        <div class="progress">
            <div class="progress-bar progress-bar-success progress-bar-striped active" style="width: 100%;"></div>
        </div>
    </div>
</form>
